package com.bidepan.spring6.aop.annotation;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAop {
    @Test
    public void test(){
        //加载配置文件得到bean实例
        ApplicationContext context = new ClassPathXmlApplicationContext("aop-annotation.xml");
        //得到对象
        Calculator calculator = context.getBean(Calculator.class);
        calculator.mul(2,3);
    }
}
